<?php
            
namespace Admin\Model;
use Think\Model;
use Think\Upload;

/**
 * 商品规格模型
 *  
 */

class GroupPurchaseLeanCloudModel extends SyncModel{
    
    protected $tableName = 'grouppurchase'; 
    
    //leancloud表名
    protected $leancloudName = "GroupPurchase";
    
    //配置字段
    protected $fields = array(
        'objectId', 
        'gpName',
        'fileUrl', 
        'content', 
        'begindate',
        'enddate',
        'payenddate',
        'createdAt',
        'updatedAt',
        'syncStatus', 
        'status',
        '_type'=>array(
            'objectId'=>'int', 
            'gpName'=>'varchar',
            'fileUrl'=>'varchar', 
            'content'=>'varchar', 
            'begindate'=>'int', 
            'enddate'=>'int', 
            'payenddate'=>'int', 
            'createdAt'=>'int',
            'updatedAt'=>'int',
            'syncStatus'=>'int', 
            'status'=>'int'
        )
    );
    
    
    //leancloud 字段类型
    protected $leancloudelds = array(
        "objectId"=>"String",
        "gpName"=>"String",
        "fileUrl"=>"String",
        "content"=>"String",
        "begindate"=>"Date",
        "enddate"=>"Date",
        "payenddate"=>"Date",
        'createdAt'=>'Date',
        'updatedAt'=>'Date',
        'syncStatus'=>'Number', 
        'status'=>'Number'
    );
}
